package com.whu.zqm.dao;

import com.whu.zqm.domain.Ps;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whu.zqm.domain.Suppliers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zqm
 * @since 2022-10-28
 */
@Mapper
public interface PsDao extends BaseMapper<Ps> {

    @Select("select id,name from ps,suppliers where pid=#{pid} and sid=id")
    List<Suppliers> getSuppliersByPid(int pid);

}
